package org.xmdl.silk.wrap;

import org.xmdl.silk.Expression;
import org.xmdl.silk.NumInteger;
import org.xmdl.silk.impl.NumIntegerImpl;
import org.xmdl.silk.visit.Visitor;

public class NumIntegerWrap extends NumIntegerImpl implements Expression, ExpressionWrap {

	private final NumInteger w;

	public NumIntegerWrap(NumInteger w) {
		this.w = w;
	}

	@Override
	public int getValue() {
		return w.getValue();
	}

	@Override
	public void setValue(int newValue) {
		w.setValue(newValue);
	}

	public boolean accept(Visitor visitor)
	{
		return (visitor.visit(this));
	}

}
